// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:16

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ps.java

package com.zelix;

import java.io.*;

// Referenced classes of package com.zelix:
//            is, jm

public class ps extends is
{

    int i;
    String j;
    byte k[];
    int l;
    private static String z[];

    private ps(int i1, jm jm, int j1, int k1, byte abyte0[], String s)
    {
        super(i1, jm);
        i = j1;
        j = s;
        k = abyte0;
        l = k1;
    }

    ps(is is1, int i1, String s)
    {
        super(is1.e, is1.f);
        i = i1;
        j = s;
        k = is1.f();
        l = is1.i();
    }

    public String h()
    {
        return getClass().getName() + z[1] + i;
    }

    static ps a(jm jm, int i1, int j1)
    {
        String s;
        int k1;
        ByteArrayOutputStream bytearrayoutputstream;
label0:
        {
            boolean flag = is.g;
            s = z[0];
            bytearrayoutputstream = new ByteArrayOutputStream();
            DataOutputStream dataoutputstream = new DataOutputStream(bytearrayoutputstream);
            try
            {
                dataoutputstream.writeByte(i1);
            }
            catch(IOException _ex) { }
            switch(i1)
            {
            case 7: // '\007'
            case 8: // '\b'
                k1 = 1;
                try
                {
                    dataoutputstream.writeShort(0);
                    break label0;
                }
                catch(IOException _ex) { }
                if(!flag)
                    break label0;
                // fall through

            case 9: // '\t'
            case 10: // '\n'
            case 11: // '\013'
            case 12: // '\f'
                k1 = 1;
                try
                {
                    dataoutputstream.writeShort(0);
                    dataoutputstream.writeShort(0);
                    break label0;
                }
                catch(IOException _ex) { }
                if(!flag)
                    break label0;
                // fall through

            default:
                return null;
            }
        }
        return new ps(j1, jm, i1, k1, bytearrayoutputstream.toByteArray(), s);
    }

    int i()
    {
        return l;
    }

    public int l()
    {
        return i;
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.write(k);
    }
              private static String dees(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x62;
                    break;
                case 1:
                    key = 113;
                    break;
                case 2:
                    key = 9;
                    break;
                case 3:
                    key = 109;
                    break;
                default:
                    key = 89;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }
    static 
    {
        String as[];
        as = new String[2];
        as[0] = dees("!\036{\037,\022\005)\b7\026\003p".toCharArray());
        as[1] = dees("B\005h\nd".toCharArray());
        z = as;

    }
}